package org.test4j.integration.junit4;

import org.junit.Assert;
import org.junit.Test;
import org.test4j.integration.DataProvider;

/**
 * 简单junit4测试示例
 */
public class JUnit4TestDemo {
    @Test
    public void demo() {
        int count = 10;
        Assert.assertEquals(10, count);
    }

    @DataFrom("dataForDataFrom")
    @Test
    public void testDataFrom(String actual, String expected) {
        Assert.assertEquals(expected, actual);
    }

    public static DataProvider dataForDataFrom() {
        return new DataProvider()
            .data("string", "string")
            .data("we", "we");
    }
}